package NetBeansProjects.Indexer3.src.services;

import java.util.HashSet;
import java.util.Set;

public class StopWords {
	
	private static Set<String> stopwords = new HashSet<String>();
	
	static {
		stopwords.add("about");stopwords.add("an");stopwords.add("are");stopwords.add("as");stopwords.add("at");
		stopwords.add("be");stopwords.add("by");stopwords.add("com");stopwords.add("de");stopwords.add("en");
		stopwords.add("for");stopwords.add("from");stopwords.add("how");stopwords.add("in");stopwords.add("is");
		stopwords.add("it");stopwords.add("la");stopwords.add("of");stopwords.add("on");stopwords.add("or");
		stopwords.add("that");stopwords.add("then");stopwords.add("this");stopwords.add("to");stopwords.add("was");
		stopwords.add("what");stopwords.add("when");stopwords.add("where");stopwords.add("who");stopwords.add("will");
		stopwords.add("with");stopwords.add("and");stopwords.add("the");stopwords.add("www");stopwords.add("not");
		stopwords.add("reuter");stopwords.add("reuters");stopwords.add("reutersd");stopwords.add("it");
	}
	
	public static boolean contains(String token) {
		return stopwords.contains(token);
	}

	public static Set<String> getStopwords() {
		return stopwords;
	}
}
